home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!usenet
- From: GHouck <hksys@teleport.com>
- Newsgroups: comp.lang.c
- Subject: Re: COLLEGE PROFESSORS! #3
- Date: 18 Apr 1996 07:41:12 GMT
- Organization: systems hk
- Message-ID: <4l4rmo$r1v@nadine.teleport.com>
- References: <8BEC556.02C70031C6.uuout@sourcebbs.com>
- NNTP-Posting-Host: ip-pdx07-11.teleport.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- david.mohorn@sourcebbs.com (DAVID MOHORN) wrote:
- >My last complaint tonight is how the instructor comments his code--I
- >can't take it any more!!!
- [snip]
- [snip]
- >This is how his code looks:
- >
- >comment
- [snip]
- [snip]
- >The code is endlessly over commented! I mean, every "comment" is 80
- >characters long written in paragraph format! Code statements are buried
- [snip]
- [snip snip snip ...]
-
- A few points. I don't usually agree with the sages in this
- group concerning appropriateness of postings, however, I'll make
- an exception in your case:
-
- 1. Who ARE you? And what does Visual Basic have to do with C?
- 2. In one example you were overly concerned with the speed of
- a few too many tests, yet in the last you were willing to
- shift potentially hundreds of strings up an array? It is
- very common in the real world to 'mark' things as deleted;
- less common to do as you suggest.
- 3. As to comments: the only thing worse than too few comments,
- are bad or content-less comments. The quantity is not the
- issue; the quality is.
- 4. Until you're in a position to teach a programming class,
- remember (as another respondent stated) the goal at the
- elementary level is not to teach the most efficient or
- elegant method, but to expose the underlying concepts.
-
- You remind of those letters to the editor -- after an article
- describing some algorithm or concept -- offering a much faster, more
- elegant, shorter way to perform the task, when that wasn't the issue
- at all. There's always a faster and sweeter way to do something,
- but we can't all think of them at the time ... we've got real-world
- deadlines to meet.
-
- Yours, Geoff Houck
-
-